export const commentRoutes = [
  {
    path: '/login',
    component: () => import('../view/login/index.vue'),
    name: 'login',
    meta: {
      title: '登录',
      isShow: false,
    }
  },
  {
    path: '/register',
    component: () => import('../view/register/index.vue'),
    name: 'register',
    meta: {
      title: '注册',
      isShow: false,
    }
  },
  {
    path: '/',
    component: () => import('../layout/index.vue'),
    name: 'layout',
    redirect: '/home',
    meta: {
      // title: '首页',
      isShow: true,
      icon: 'House'
    },
    children: [
      {
        path: '/home',
        component: () => import('../view/home/index.vue'),
        name: 'home',
        meta: {
          title: '首页',
          isShow: true,
          icon: 'House'
        }
      },
    ]
  },
  {
    path: '/work',
    component: () => import('../layout/index.vue'),
    name: 'work',
    redirect: '/work/mywork',
    meta: {
      // title: '我的工作',
      isShow: true,
      // icon: 'Folder'
    },
    children: [
      {
        path: '/work/mywork',
        component: () => import('../view/work/index.vue'),
        name: 'mywork',
        meta: {
          title: '我的工作',
          isShow: true,
          icon: 'Folder'
        }
      }
    ]
  },
  {
    path: '/user',
    component: () => import('../layout/index.vue'),
    name: 'user',
    redirect: '/user/manage',
    meta: {
      isShow: true,
      roles: ['admin']
    },
    children: [
      {
        path: '/user/manage',
        component: () => import('../view/user/index.vue'),
        name: 'manage',
        meta: {
          title: '用户管理',
          isShow: true,
          icon: 'User'
        }
      }
    ]
  },
  {
    path: '/error',
    component: () => import('../view/error/index.vue'),
    name: 'error',
    meta: {
      isShow: false
    }
  },
  {
    path: '/room',
    name: 'room',
    component: () => import('../layout/index.vue'),
    redirect: '/room/myroom/',
    meta: {
      isShow: false,
    },
    children: [
      {
        path: '/room/myroom/:id',
        component: () => import('../view/room/index.vue'),
        name: 'myroom',
        meta: {
          // title: useUser.currentTitle,
          isShow: false,
          icon: 'HelpFilled',
        }
      }
    ]
  }
]

